/* eslint-disable */
import React, { Component } from 'react';
import styles from './index.less';

class Title extends Component {
  render() {
    let { title, renderChild } = this.props;
    return(
      <div className={styles['title']}>
        { title }
        { 
          renderChild &&
          <div className={styles['child-right']}>
            {renderChild}
          </div>
        }
      </div>
    )
  }
}

export default Title;